package com.medical.server.charge.service.impl;

import com.laozj.common.utils.PageUtils;
import com.laozj.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.medical.server.charge.dao.CommonChargeDao;
import com.medical.server.charge.entity.CommonChargeEntity;
import com.medical.server.charge.service.CommonChargeService;


@Service("commonChargeService")
public class CommonChargeServiceImpl extends ServiceImpl<CommonChargeDao, CommonChargeEntity> implements CommonChargeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CommonChargeEntity> page = this.page(
                new Query<CommonChargeEntity>().getPage(params),
                new QueryWrapper<CommonChargeEntity>()
        );

        return new PageUtils(page);
    }

}